class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception
  respond_to :html, :json

  def appoint
    flag = WebSite.new.login.make_appoint('雷希')
    logger.info("request for jx16 with 雷希 teacher.")
    render json: {flag: flag}
  end

  def teachers
    @teachers = WebSite.new.login.teachers
    respond_with
  end
end
